/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>
#include <cmath>
using namespace std;

int main_18()
{
    int n;
    scanf("%d",&n);
    const double PI=acos(-1);
    double radian=n*PI/180;
    printf("%lf %lf\n",sin(radian),cos(radian));
	return 0;
}
